﻿using B.S.BasicData.Domain.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BasicData.Infrastructure
{
    /// <summary>
    /// 数据库上下文
    /// </summary>
    public class SCDBcontext : DbContext
    {
        public SCDBcontext(DbContextOptions options) : base(options)
        {
        }

        /// <summary>
        /// 日志数据集 日志表
        /// </summary>
        public DbSet<LogModel> LogModels { get; set; }

        /// <summary>
        /// 账号数据集 账号表
        /// </summary>
        public DbSet<AccountModel> AccountModels { get; set; }
        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<RoleModel> RoleModels { get; set; }
        /// <summary>
        /// 部门表
        /// </summary>
        public DbSet<DepartmentModel> DepartmentModels { get; set; }
        /// <summary>
        /// 区域数据集
        /// </summary>
        public DbSet<AreaModel> AreaModels { get; set; }
    }
}
